﻿#pragma once

#if defined(_MSC_VER)
	#define _CRT_SECURE_NO_WARNINGS
#endif

// 标准库头文件
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <time.h>
#include <windows.h>

// 外部函数声明
extern void odd_scanf();
extern void odd_zero_to_one_hundred();
extern void week_day(int day);
extern void week_day_state(int day);

extern void switch_in_switch(int n, int m);

extern void test_while(int num);
extern void clean_cache();
extern void char_test();
extern void password_input_test();
extern void only_output_num();

extern void for_test(int k);
extern void printf_num();
extern void for_more();

extern void do_while_test();

extern void date_output();
extern void grade_output();
extern void max_four(int num);
extern int n_factorial(int n);
extern void printf_merge();
extern int log_in(char mima[], int n);

extern void goto_test();
extern void shutdown_test();

extern int guess_game();
extern void bubble_sort(int arr[], int n);
extern int common_divisor(unsigned int a, unsigned int b);
extern int count_9(int start, int end, int num);
extern float sum_n_to_one(int n);

// 宏定义部分
#define print_start_line(start_str) printf("---------- %s ----------\n", start_str)
#define print_end_line(end_str) printf("---------- %s ----------\n\n\n", end_str)
